package com.jcl.cloud.services.crawler.search;

import com.jcl.cloud.services.crawler.search.util.ContextUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;


@EnableDiscoveryClient
@SpringBootApplication
@EnableEurekaClient
@EnableScheduling
public class SearchWorkerMircoService {


    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(SearchWorkerMircoService.class, args);
        ContextUtil.setContext(context);
    }


}
